package demo3.DeleteDepart;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

import db.DBUtil;

public class DeleteDepartDAO {
	public static void delete(String id) throws SQLException {
		Connection conn=DBUtil.getConnection();
		Statement stmt=conn.createStatement();
		String sql="delete from t_base_unit_info where unit_id='"+id+"'";
		stmt.execute(sql);
		DBUtil.close(conn);
	}


}
